﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Yun.Interface;
using Yun.Response;
using Yun.Util;

namespace Yun.IM.Request
{
    /// <summary>
    /// 删除收藏
    /// yun.im.rongcloud.collect.delete
    /// </summary>
    public class DeleteIMCollectRequest : ITopRequest<IntResultResponse>
    {

        /// <summary>
        /// 收藏ID
        /// </summary>
        public long Id { get; set; }

        public string GetApiName()
        {
            return "yun.im.rongcloud.collect.delete";
        }

        public IDictionary<string, string> GetParameters()
        {
            var parameters = new YunDictionary
            {
                {"id", Id} 
            };

            return parameters;
        }

        public void Validate()
        {
            RequestValidator.ValidateRequired("id", Id);
             
        }


    }
}
